<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
	<title>10-原子表</title>
	<style type="text/css">
	* {
		padding: 0;
		margin: 0;
	}
	span.red{
		color: red;
	}
    </style>
</head>
<body>
	<div class="container" id="container">
		<h1>10-原子表</h1> 
	  <p>后盾人</p>
	  <h1>houdunren.com</h1>
	  <h1>hdcms.com</h1>
	</div>
	<script src="../tools/utils.js"></script>
	<script type="text/javascript">

	var html = container.innerHTML
	// * 是具有贪婪特性的，需要防止贪婪匹配
	var reg = /<(h[1-6])>[\s\S]*<\/\1>/g
	var reg = /<(h[1-6])>[\s\S]*?<\/\1>/g
	console.log(html.match(reg))
	
	</script>
</body>
</html>